var limsExcelReadconfig = Gikam.getPageObject({

    getEditListColumns : function() {
        return [ {
            checkbox : true
        }, {
            field : 'name',
            title : 'T_LIMS_EXCEL_READCONFIG.NAME',
            editor : true,
            validators : ['notEmpty'],
        }, {
            field : 'mongoDbDoc',
            title : 'T_LIMS_EXCEL_READCONFIG.MONGODBDOC',
            editor : true,
            validators : ['notEmpty'],
        }, {
            field : 'excelDataStorageService',
            title : 'T_LIMS_EXCEL_READCONFIG.T_LIMS_EXCEL_READCONFIG',
            editor : true,
        }, {
            field : 'charSet',
            title : 'T_LIMS_EXCEL_READCONFIG.CHARSET',
            editor : true,
          }, {
            field : 'category',
            title : 'T_LIMS_EXCEL_READCONFIG.CATEGORY',
            type: 'select',
            items: [{
                text: '铅酸',
                value: 'plumbous',
            }, {
                text: '锂电',
                value: 'lithium'
            }],
            editor : true,
            validators : [ 'notEmpty', 'strLength[0,30]' ],
        }, {
            field : 'remark',
            title : 'T_LIMS_EXCEL_READCONFIG.REMARK',
            editor : true,
            type : 'richText'
        } ];
    },

    getBaseInfoFormFields : function() {
        return [ {
            field : 'name',
            title : 'T_LIMS_EXCEL_READCONFIG.NAME',
            validators : [ 'strLength[0,40]' ],
            preInsert : true,
        }, {
            field : 'mongoDbDoc',
            title : 'T_LIMS_EXCEL_READCONFIG.MONGODBDOC',
            validators : [ 'strLength[0,30]' ],
            preInsert : true,
        }, {
            field : 'category',
            title : 'T_LIMS_EXCEL_READCONFIG.CATEGORY',
            type: 'select',
            items: [{
                text: '铅酸',
                value: 'plumbous',
            }, {
                text: '锂电',
                value: 'lithium'
            }],
            validators : [ 'strLength[0,30]' ],
            preInsert : true,
        }, {
            field : 'remark',
            title : 'T_LIMS_EXCEL_READCONFIG.REMARK',
            validators : [ 'strLength[0,80]' ]
        }, ];
    },

    getSearchListColumns : function() {
        return [ {
            checkbox : true
        }, Gikam.status.getBpmnColumn(limsExcelReadconfig.workflow.dbTable), {
            field : 'name',
            title : 'T_LIMS_EXCEL_READCONFIG.NAME'
        }, {
            field : 'remark',
            title : 'T_LIMS_EXCEL_READCONFIG.REMARK'
        } ];
    },

    getChooseListColumns : function() {
        return [ {
            field : 'name',
            title : 'T_LIMS_EXCEL_READCONFIG.NAME'
        }, {
            field : 'remark',
            title : 'T_LIMS_EXCEL_READCONFIG.REMARK'
        }, ];
    },

    baseUrl : IFM_CONTEXT + '/secure/basemodule/common/eptstorage/file/parse/excelread/excel-readconfigs'
});
